package com.roadjava.favorite.bean.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

/**
 * 日志实体类
 * @author 29718
 * @TableName logs
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("logs")
public class LogsDO {
    /**
     * 日志主键
     */
    @TableId
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 操作名称
     */
    private String operation;

    /**
     * 操作类型
     */
    private String type;


    /**
     * 执行操作的用户
     */
    private String username;

    /**
     * 操作时间
     */
    private String time;

    /**
     * 操作时的IP地址
     */
    private String ip;
}
